// app.js
import utils from './utils/utils'
import http from './utils/http'
import QQMapWX from './libs/qqmap-wx-jssdk.min.js'
const qqMapSdk = new QQMapWX({
  key: 'ID5BZ-VFAWT-QTWXQ-VIM52-5M4SZ-EPFQY',
})
wx.qqMapSdk = qqMapSdk
wx.http = http
wx.utils = utils
App({
  token: wx.getStorageSync('token'),
  refreshToken: wx.getStorageSync('refreshToken'),
  globalData: {},
  setToken(key, token) {
    this[key] = token
    wx.setStorageSync(key, token)
  },
})
